#!/bin/sh

##Run general setup programs
./run_general

##Individual level estimation
R CMD BATCH ./SwitchCosts/fl_compute_honoreFE.R 
stata-mp -b ./SwitchCosts/fl_compute_raw_logit_sc.do 
stata-mp -b ./SwitchCosts/fl_feasible_sc.do 

##Compute deltas for counterfactuals
R CMD BATCH ./SwitchCosts/fl_compute_deltas.R

##Results from estimations 
R CMD BATCH ./SwitchCosts/fl_results_tables.R 

##Counterfactuals
R CMD BATCH ./SwitchCosts/conlaw_over_time_move.R 
R CMD BATCH ./SwitchCosts/entry_over_time_move.R 

#Monte Carlo
R CMD BATCH ./SwitchCosts/runMonteCarlo.R 

